package com.jtcl.design.prototypeMode;

/**
 * 原型模式
 *
 * @author sjt
 * @since 2021-04-28 11:37
 */
public class PrototypeMode {

    public static void main(String[] args) throws CloneNotSupportedException {
        Realizetype obj1 = new Realizetype();
        Realizetype obj2 = (Realizetype) obj1.clone();
        System.out.println("obj1==obj2?" + (obj1 == obj2));
    }


}
